package com.sk.skplanet.commute.vo;

import java.util.ArrayList;
import java.util.List;

public class Member extends BusServerVo {
	private String email;
	private List<Route> routes;

	// private static Member instance;

	public Member(long id) {
		super(id);
		routes = new ArrayList<Route>();
	}

	public Member(long id, String email) {
		super(id);
		routes = new ArrayList<Route>();
	}

	public List<Route> getRoutes() {
		return routes;
	}

	public void setRoutes(List<Route> routes) {
		this.routes = routes;
	}

	public void addRoute(Route route) {
		routes.add(route);
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public String toString() {
		return "Member [id=" + id + ", email=" + email + ", routes=" + routes + "]";
	}

}
